how to find smallest element in an array in c programming